package com.share.common.core.web.domain;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

/**
 * 分页查询参数
 *
 * @author chenshun
 * @date 2019-05-09 17:01:07
 */
@Data
@Schema(description = "分页查询参数")
public class PageQueryDTO {

    @NotNull(message = "当前页码不能为空")
    @Min(value = 1, message = "页码必须大于等于1")
    @Schema(description = "当前页码", example = "1")
    private Integer pageNum;

    @NotNull(message = "每页数量不能为空")
    @Min(value = 1, message = "每页数量必须大于等于1")
    @Schema(description = "每页数量", example = "10")
    private Integer pageSize;
}
